export const defaultOptions = {
  isControl: true,
};

/**
 * 控制端检测后缀
 */
export const controlSuffix = "control";

/**
 * 放映端检测后缀
 */

export const viewSuffix = "view";

/**
 * 配置消息事件类型
 */

export const EVENT_CONFIG_MSG = "config";

/**
 * 首次初始化的配置事件类型
 */

export const EVENT_INTI_CONFIG = "init_config";

/**
 * 控制端配置消息事件类型
 */
export const EVETN_CONTROL_CONFIG_MSG = "EVETN_CONTROL_CONFIG_MSG";

/**
 * 放映端发送屏幕设备状态事件类型
 */

export const EVENT_SCREEN_TO_CONFG = "EVENT_SCREEN_TO_CONFG";
/**
 * 离开页面事件类型
 */
export const EVENT_LEAVE_PAGE = "EVENT_LEAVE_PAGE";

/**
 * 进入房间事件类型
 */

export const EVENT_ENTER_PAGE = "EVENT_ENTER_PAGE";

export const TOPIC_SUFFIX = "sgb";

/**
 * 配置主题名称
 * @param {*} id
 * @returns
 */
export const topicMsg = (id) => {
  return `${TOPIC_SUFFIX}/${id}/config`;
};

/**
 * 配置状态主题
 * @param {*} id
 * @returns
 */

export const topicState = (id) => {
  return `${TOPIC_SUFFIX}/${id}/state`;
};

export const topicScreen = (id) => {
  return `${TOPIC_SUFFIX}/${id}/screen`;
};

export const topicLeave = (id) => {
  return `${TOPIC_SUFFIX}/${id}/leave`;
};

export const topicEnter = (id) => {
  return `${TOPIC_SUFFIX}/${id}/enter`;
};

export const TEXTALIGN = {
  LEFT: "left",
  CENTER: "center",
  RIGHT: "right",
};
